<f:view xmlns:f="http://java.sun.com/jsf/core"
        xmlns:h="http://java.sun.com/jsf/html"
        xmlns:ice="http://www.icesoft.com/icefaces/component"
        xmlns:ui="http://java.sun.com/jsf/facelets"
        xmlns:c="http://java.sun.com/jstl/core"
        xmlns:fn="http://java.sun.com/jsp/jstl/functions">
<ui:composition>
<ice:form>
<center>
<ice:panelGroup>
<ice:panelCollapsible expanded="true" id="newmobileproduct" toggleOnClick="false" style="width: 800px;">
<f:facet name="header">
    <ice:panelGroup style="text-align: left">
        <ice:outputText value="#{msgs['mobile.product.new.title']}"/>
    </ice:panelGroup>
</f:facet>
<ice:panelGrid columns="2" columnClasses="newMobileLableColumn200,newMobileInputColumn500">
    <ice:column>
        <ice:panelGroup style="text-align:right">
            <ice:outputText value="#{msgs['mobile.product.id']}"/>
        </ice:panelGroup>
    </ice:column>
    <ice:column>
        <ice:inputText value="#{mobileProductCreate.mobileProduct.mobileProductId}"/>
    </ice:column>
    <ice:column>
        <ice:panelGroup style="text-align:right">
            <ice:outputText value="#{msgs['mobile.product.desc']}"/>
        </ice:panelGroup>
    </ice:column>
    <ice:column>
        <ice:inputText value="#{mobileProductCreate.mobileProduct.mobileProductDesc}"/>
    </ice:column>
    <ice:column>
        <ice:panelGroup style="text-align:right">
            <ice:outputText value="#{msgs['mobile.product.default.supplier']}"/>
        </ice:panelGroup>
    </ice:column>
    <ice:column>
        <ice:inputText value="#{mobileProductCreate.mobileProduct.defaultSupplier}"/>
    </ice:column>
    <ice:column>
        <ice:panelGroup style="text-align:right">
            <ice:outputText value="#{msgs['mobile.product.begin.date']}"/>
        </ice:panelGroup>
    </ice:column>
    <ice:column>
        <ice:selectInputDate value="#{mobileProductCreate.mobileProduct.beginDate}"
                renderAsPopup="true" renderMonthAsDropdown="true"
                renderYearAsDropdown="true"
                highlightUnit="DAY_OF_WEEK" highlightValue="1,7"
                highlightClass="weekend">
            <f:convertDateTime pattern="#{mobileProductCreate.datePattern}" timeZone="#{mobileProductCreate.timeZone}"/>
        </ice:selectInputDate>
    </ice:column>
    <ice:column>
        <ice:panelGroup style="text-align:right">
            <ice:outputText value="#{msgs['mobile.product.end.date']}"/>
        </ice:panelGroup>
    </ice:column>
    <ice:column>
        <ice:selectInputDate value="#{mobileProductCreate.mobileProduct.endDate}"
                renderAsPopup="true" renderMonthAsDropdown="true"
                renderYearAsDropdown="true"
                highlightUnit="DAY_OF_WEEK" highlightValue="1,7"
                highlightClass="weekend">
            <f:convertDateTime pattern="#{mobileProductCreate.datePattern}" timeZone="#{mobileProductCreate.timeZone}"/>
        </ice:selectInputDate>
    </ice:column>
    <ice:column>
        <ice:panelGroup style="text-align:right">
            <ice:outputText value="#{msgs['common.status']}"/>
        </ice:panelGroup>
    </ice:column>
    <ice:column>
        <ice:selectOneMenu value="#{mobileProductCreate.mobileProduct.status}">
            <f:selectItems value="#{mobileProductCreate.statusList}"/>
        </ice:selectOneMenu>
    </ice:column>
    <ice:column>
        <ice:panelGroup style="text-align: right">
            <ice:outputText value="#{msgs['mobile.product.is.new']}"/>
        </ice:panelGroup>
    </ice:column>
    <ice:column>
        <ice:selectOneRadio value="#{mobileProductCreate.mobileProduct.isNew}">
            <f:selectItem itemValue="#{true}" itemLabel="yes"/>
            <f:selectItem itemValue="#{false}" itemLabel="no"/>
        </ice:selectOneRadio>
    </ice:column>
    <ice:column>
        <ice:panelGroup style="text-align: right">
            <ice:outputText value="#{msgs['mobile.product.is.upgradeable']}"/>
        </ice:panelGroup>
    </ice:column>
    <ice:column>
        <ice:selectOneRadio value="#{mobileProductCreate.mobileProduct.isUpgradeable}">
            <f:selectItem itemValue="#{true}" itemLabel="yes"/>
            <f:selectItem itemValue="#{false}" itemLabel="no"/>
        </ice:selectOneRadio>
    </ice:column>
    <ice:column>
        <ice:panelGroup style="text-align: right">
            <ice:outputText value="#{msgs['mobile.product.is.expire.applicable']}"/>
        </ice:panelGroup>
    </ice:column>
    <ice:column>
        <ice:selectOneRadio value="#{mobileProductCreate.mobileProduct.isExpireApplicable}">
            <f:selectItem itemValue="#{true}" itemLabel="yes"/>
            <f:selectItem itemValue="#{false}" itemLabel="no"/>
        </ice:selectOneRadio>
    </ice:column>
    <ice:column>
        <ice:panelGroup style="text-align: right">
            <ice:outputText value="#{msgs['mobile.product.is.redemption.applicable']}"/>
        </ice:panelGroup>
    </ice:column>
    <ice:column>
        <ice:selectOneRadio value="#{mobileProductCreate.mobileProduct.isRedemptionApplicable}">
            <f:selectItem itemValue="#{true}" itemLabel="yes"/>
            <f:selectItem itemValue="#{false}" itemLabel="no"/>
        </ice:selectOneRadio>
    </ice:column>
    <ice:column>
        <ice:panelGroup style="text-align: right">
            <ice:outputText value="#{msgs['mobile.product.is.suspend.applicable']}"/>
        </ice:panelGroup>
    </ice:column>
    <ice:column>
        <ice:selectOneRadio value="#{mobileProductCreate.mobileProduct.isSuspendApplicable}">
            <f:selectItem itemValue="#{true}" itemLabel="yes"/>
            <f:selectItem itemValue="#{false}" itemLabel="no"/>
        </ice:selectOneRadio>
    </ice:column>
    <ice:column>
        <ice:panelGroup style="text-align: right">
            <ice:outputText value="#{msgs['mobile.product.is.delete.applicable']}"/>
        </ice:panelGroup>
    </ice:column>
    <ice:column>
        <ice:selectOneRadio value="#{mobileProductCreate.mobileProduct.isDeleteApplicable}">
            <f:selectItem itemValue="#{true}" itemLabel="yes"/>
            <f:selectItem itemValue="#{false}" itemLabel="no"/>
        </ice:selectOneRadio>
    </ice:column>
    <ice:column>
        <ice:panelGroup style="text-align:right">
            <ice:outputText value="#{msgs['mobile.product.expire.commencement.duration']}"/>
        </ice:panelGroup>
    </ice:column>
    <ice:column>
        <ice:message for="expireCommencementYear"/>
        <ice:message for="expireCommencementMonth"/>
        <ice:message for="expireCommencementDay"/>
        <ice:panelGrid columns="3">
            <ice:column>
                <ice:inputText id="expireCommencementYear" style="width:50px" value="#{mobileProductCreate.mobileProduct.expireCommencementDurationYear}" partialSubmit="true"><f:converter converterId="javax.faces.convert.IntegerConverter"/></ice:inputText><ice:outputText value="#{msgs['common.year']}"/>
            </ice:column>
            <ice:column>
                <ice:inputText style="width:50px" partialSubmit="true" id="expireCommencementMonth" value="#{mobileProductCreate.mobileProduct.expireCommencementDurationMonth}"><f:converter converterId="javax.faces.convert.IntegerConverter"/></ice:inputText><ice:outputText value="#{msgs['common.month']}"/>
            </ice:column>
            <ice:column>
                <ice:inputText style="width:50px" partialSubmit="true" id="expireCommencementDay" value="#{mobileProductCreate.mobileProduct.expireCommencementDurationDay}"><f:converter converterId="javax.faces.convert.IntegerConverter"/></ice:inputText><ice:outputText value="#{msgs['common.day']}"/>
            </ice:column>
        </ice:panelGrid>
    </ice:column>
    <ice:column>
        <ice:panelGroup style="text-align:right">
            <ice:outputText value="#{msgs['mobile.product.redemption.commencement.duration']}"/>
        </ice:panelGroup>
    </ice:column>
    <ice:column>
        <ice:message for="redemptionCommencementYear"/>
        <ice:message for="redemptionCommencementMonth"/>
        <ice:message for="redemptionCommencementDay"/>
        <ice:panelGrid columns="3">
            <ice:column>
                <ice:inputText id="redemptionCommencementYear" style="width:50px" value="#{mobileProductCreate.mobileProduct.redemptionCommencementDurationYear}" partialSubmit="true"><f:converter converterId="javax.faces.convert.IntegerConverter"/></ice:inputText><ice:outputText value="#{msgs['common.year']}"/>
            </ice:column>
            <ice:column>
                <ice:inputText style="width:50px" partialSubmit="true" id="redemptionCommencementMonth" value="#{mobileProductCreate.mobileProduct.redemptionCommencementDurationMonth}"><f:converter converterId="javax.faces.convert.IntegerConverter"/></ice:inputText><ice:outputText value="#{msgs['common.month']}"/>
            </ice:column>
            <ice:column>
                <ice:inputText style="width:50px" partialSubmit="true" id="redemptionCommencementDay" value="#{mobileProductCreate.mobileProduct.redemptionCommencementDurationDay}"><f:converter converterId="javax.faces.convert.IntegerConverter"/></ice:inputText><ice:outputText value="#{msgs['common.day']}"/>
            </ice:column>
        </ice:panelGrid>
    </ice:column>
    <ice:column>
        <ice:panelGroup style="text-align:right">
            <ice:outputText value="#{msgs['mobile.product.delete.commencement.duration']}"/>
        </ice:panelGroup>
    </ice:column>
    <ice:column>
        <ice:message for="deleteCommencementYear"/>
        <ice:message for="deleteCommencementMonth"/>
        <ice:message for="deleteCommencementDay"/>
        <ice:panelGrid columns="3">
            <ice:column>
                <ice:inputText id="deleteCommencementYear" style="width:50px" value="#{mobileProductCreate.mobileProduct.deleteCommencementDurationYear}" partialSubmit="true"><f:converter converterId="javax.faces.convert.IntegerConverter"/></ice:inputText><ice:outputText value="#{msgs['common.year']}"/>
            </ice:column>
            <ice:column>
                <ice:inputText style="width:50px" partialSubmit="true" id="deleteCommencementMonth" value="#{mobileProductCreate.mobileProduct.deleteCommencementDurationMonth}"><f:converter converterId="javax.faces.convert.IntegerConverter"/></ice:inputText><ice:outputText value="#{msgs['common.month']}"/>
            </ice:column>
            <ice:column>
                <ice:inputText style="width:50px" partialSubmit="true" id="deleteCommencementDay" value="#{mobileProductCreate.mobileProduct.deleteCommencementDurationDay}"><f:converter converterId="javax.faces.convert.IntegerConverter"/></ice:inputText><ice:outputText value="#{msgs['common.day']}"/>
            </ice:column>
        </ice:panelGrid>
    </ice:column>
    <ice:column>
        <ice:panelGroup style="text-align:right">
            <ice:outputText value="#{msgs['mobile.product.default.assign.to']}"/>
        </ice:panelGroup>
    </ice:column>
    <ice:column>
        <ice:inputText value="#{mobileProductCreate.defaultAssignToName}" style="width: 300px" alt="#{msgs['mobile.product.default.assign.to.tip']}"/>
    </ice:column>
    <ice:column>
        <ice:panelGroup style="text-align:right">
            <ice:outputText value="#{msgs['mobile.product.category']}"/>
        </ice:panelGroup>
    </ice:column>
    <ice:column>
        <ice:inputText value="#{mobileProductCreate.productCategoryName}" style="width: 300px" alt="#{msgs['mobile.product.category.tip']}"/>
    </ice:column>
</ice:panelGrid>
<center>
    <ice:panelGrid columns="2"
                   columnClasses="newMobileLableColumn200,newMobileLableColumn200">
        <ice:column>
            <ice:panelGroup style="text-align:center">
                <ice:commandButton value="#{msgs['common.button.cancel']}"
                                   action="#{mobileProductCreate.newCancel}"/>
            </ice:panelGroup>
        </ice:column>
        <ice:column>
            <ice:panelGroup style="text-align:center">
                <ice:commandButton value="#{msgs['common.button.save']}"
                                   action="#{mobileProductCreate.newSave}"/>
            </ice:panelGroup>
        </ice:column>
    </ice:panelGrid>
</center>
</ice:panelCollapsible>
</ice:panelGroup>
</center>
</ice:form>
</ui:composition>
</f:view>